/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2019-03-12 Time: 23:23
 */
import {RequestAction, RequestMethod} from "../configuration/RequestConfiguration"
import {AppRequestPath} from "../configuration/AppConfig"
import {API_PROCEDURE2} from "../constant/API"
import {FU_QMS_REPAIR_RECORD_NEW_DEFAULT} from "../constant/FU"
import global from "../configuration/global";

export const requestRepairRecordNewDefault = (action) => {
  return RequestAction(
    AppRequestPath() + API_PROCEDURE2,
    RequestMethod.Post,
    {
      'hotelId': global.hotelId,
      'fu': FU_QMS_REPAIR_RECORD_NEW_DEFAULT,
      'jn': {},
      'jnJson2': {}
    },
    action
  )
}

//获取即时维修单状态
export const procQmsRecordSummary = (action,str) => {
    return RequestAction(
        AppRequestPath() + API_PROCEDURE2,
        RequestMethod.Post,
        {
            'hotelId': global.hotelId,
            'fu': 'QmsRecordSummary',
            'jn': str,
            'jnJson2': {}
        },
        action
    )
}


